import http from "../../axios";


export const submitLaunch = (params:any)=>{
    return http.post(`/form/inst/submit`,params);
}

export const myTasks = (params:any)=>{
    return http.post(`/task/manage/mylistVue`,params);
}
export const getFromByProcessInstanceId = (params:any)=>{
    return http.get(`/form/inst/get`,params);
}

export const completeTask = (data:any)=>{
    return http.post(`/task/manage/completeTaskVue`,data);
}
export const history = (params:any)=>{
    return http.get(`/task/manage/history/${params.taskId}`,params);
}

export const allTasks = (params:any)=>{
    return http.post(`/task/manage/alllistVue`,params);
}

export const myCompleteTasks = (params:any)=>{
    return http.post(`/completedTask/manage/myDoneList`,params);
}
export const myCompleteHistory = (params:any)=>{
    return http.post(`/completedTask/manage/flow/history`,params);
}
